﻿using AutoMapper;
using B.S.BaseData.Domain;
using B.S.BaseData.Write.API.Application.Command;

namespace B.S.BaseData.Write.API
{
    /// <summary>
    /// dto映射
    /// </summary>
    public class AutoMapperFile : Profile
    {
        public AutoMapperFile()
        {
            CreateMap<GoodsCreateCommand, GoodsInfo>().ReverseMap();
            CreateMap<BreedingCreateCommand, BreedingInfo>().ReverseMap();
            CreateMap<GoodsUpdateCommand, GoodsInfo>().ReverseMap();
        }
    }
}
